'use strict';
function numToChar(num) {
  let remainder = num%26;
  let quotient = parseInt(num/26);

  if(quotient === 0){
    return String.fromCharCode(remainder+96)
  }

  else if(quotient ===1&&remainder===0){
    return 'z';
  }

  else if(quotient > 1&&remainder===0){
    return numToChar(quotient-1) + 'z';
  }else {
    return numToChar(quotient) + String.fromCharCode(remainder+96);
  }
}


var number_map_to_word = function(collection){
 let result=collection.map(function(x){
   return numToChar(x);
 })

 console.log(result);
 return result;
};
number_map_to_word([1, 2, 3, 4, 5]);
module.exports = number_map_to_word;
